import logger from './logger.js';
module.exports  = {
	http : {
		port: 3035
	},
	debug: false,
	database: {		
		'url' : 'mysql://root:sunqi@127.0.0.1:3306/wxrd',
		'dialect': 'mysql',
        'username': 'root',
        "password": 'sunqi',
        "database": 'wxrd',
        'host': '127.0.0.1',
        'port': 3306,
		
		'params': {
			'timezone' : '+08:00' ,
            "dialectOptions": {
                charset: "utf8mb4",
                collate: "utf8mb4_unicode_ci",
                supportBigNumbers: true,
                bigNumberStrings: true
            },
            'pool': {
                max: 5,
                min: 0,
                idle: 10000
            },
            define: {
                underscored: true
            }
        }
	},
	
	redis: {
		host: '127.0.0.1',
		port: '6379',
		db : 0,
		password:'yunxiaoxin_db',
		auth:'yunxiaoxin_db'
	},
	oss : {
		ali : {
			accessKeyId: 'LTAI1YGb6WZJ1Swi',
			accessKeySecret: 'OCwOPe3mmTKc99ks1yZqE1W9R32s4q',
			bucket: 'yunfilep',
			region: 'oss-cn-beijing'
		},
		qcloud : {
			SecretId:'AKID4DHRfqVpz981nUSgSFyZAdCm1wjPD6Pz',
			SecretKey:'bDgz7ACENMDxkS3YyKd2L3eOzFjKl07C',
			Bucket:'yunfilep-1252127300',
			Region:'ap-beijing'
		},
		default : 'qcloud'
	},
	live : {
		
	},
	downloadRoot: "/Users/sunqi/Downloads",
	wechatServer:"http://192.144.138.81",
	paychannel:{
		wechat:{
			appid: 'wxdfe0f76112a9448f',
			channelNo:'A1001',
			payurl:'http://127.0.0.1:8081/api/front/pay/prepare',
			cburl:'http://127.0.0.1:3035/api/shop/paycalback'
		}
	},
	auth :{
		"/api/shop/paycallback":false
	}
};
